<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./echarts.min.js"></script>
    <style>
        .box{
            width: 500px;
            height: 400px;
            margin: 100px auto;
        }
    </style>
</head>
<body>
    <div class="box">

    </div>
    <script>
        var box=document.querySelector('.box')
        var myChart=echarts.init(box)
        var option={
            xAxis: {
            type: 'category',
            data: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
            },
            yAxis: {
                type: 'value',//'value'数值轴，适用于连续的数据
                name:'代码量'
            },
            series: [{
                data: [820, 932, 901, 934, 1290, 1330, 1320],
                type: 'line',
                smooth: true
            }]
        }
        myChart.setOption(option)
    </script>
</body>
</html>